<?php
namespace app\index\controller;

use think\Controller;
use think\Session;

class CommController extends Controller
{
    public function _initialize()
    {
        $tea_id = Session::has('subaoID');
        if (!$tea_id) {
            $this->redirect('index/Login/index', '请先登录后操作');
        }
        $this->assign('subaoID', getUserName());
    }

}